import { request } from '@/utils/request'

//获取学科列表
export const getSubjectList = (params?: any) =>
  request<any>('/aicourse/jskcToday/recordPage', 'get', params)

//学科详情列表
export const getSubjectDetail = (params?: any) =>
  request<any>(`/aicourse/jskcToday/recordPage2`, 'get', params)

//课程简介接口
export const getCourseIntroduce = (kch?: any) =>
  request<any>(`/aicourse/course/queryInfoByKch?kch=${kch}`, 'get')

//知识图谱
export const getKnowledgeGraph = (params?: any) =>
  request<any>(`/aicourse/aiKnowledgeGraph/mindMap`, 'get', params)
// 教师信息查询
export const getteacherData = (userNames: any) =>
  request<any>(
    `/aicourse/userInfo/queryByUserNames?userNames=${userNames}`,
    'GET'
  )

//课程目录列表
export const getCourseCatalog = (params?: any) =>
  request<any>(`/aicourse/jskcToday/list`, 'get', params)

//年级列表
export const getGradeList = (params?: any) =>
  request<any>(`/system/dict/data/type/grade_list`, 'get', params)
//课目
export const getCourseList = (params?: any) =>
  request<any>(`/system/dict/data/type/junior_high_subject`, 'get', params)
//册次
export const getGradeLisst = (params?: any) =>
  request<any>(`/system/dict/data/type/junior_high_volume`, 'get', params)
